package leetcode.code047;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution047 implements IDebug {
	public abstract List<List<Integer>> permuteUnique(int[] nums);

	@Override
	public void debug1() {
		String string1 = "[1,1,2]";
		String string2 = "[[1,1,2],[1,2,1],[2,1,1]]";
		this.debug(string1,string2);
	}

	private void debug(String string1, String string2) {
		int[] nums = HelpDebug.str2array3(string1);
		List<List<Integer>> list = HelpDebug.str2intlist1(string2);
		List<List<Integer>> result = this.permuteUnique(nums);
		HelpDebug.compare(list, result);
	}

	@Override
	public void debug2() {
		String string1 = "[1,2,3]";
		String string2 = "[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]";
		this.debug(string1,string2);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
